home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 86
/
(Vol 86) My Disc.iso
/
Games
/
restaurante_1072.swf
/
scripts
/
__Packages
/
it
/
sephiroth
/
XML2Object.as
Wrap
Text File
|
2009-04-16
|
5KB
|
130 lines
if(true)
{
if(true)
{
§§push(false);
}
if(!§§pop())
{
if(true)
{
if(true)
{
§§push(false);
}
if(!§§pop())
{
if(!_global.it)
{
_global.it = new Object();
}
§§pop();
if(!_global.it.sephiroth)
{
_global.it.sephiroth = new Object();
}
§§pop();
if(!_global.it.sephiroth.XML2Object)
{
var _loc2_ = it.sephiroth.XML2Object = function()
{
}.prototype;
_loc2_.__get__xml = function()
{
return this.oXML;
};
_loc2_.parseXML = function(sFile)
{
this.oResult = new Object();
this.oXML = sFile;
this.oResult = this.translateXML();
return this.oResult;
};
_loc2_.translateXML = function(from, path, name, position)
{
var _loc2_ = undefined;
var _loc9_ = undefined;
var _loc4_ = undefined;
var _loc10_ = undefined;
if(path == undefined)
{
path = this;
name = "oResult";
}
path = path[name];
if(from == undefined)
{
from = new XML(this.__get__xml().toString());
from.ignoreWhite = true;
}
if(from.hasChildNodes())
{
_loc9_ = from.childNodes;
if(position != undefined)
{
_loc10_ = path;
path = path[position];
}
while(_loc9_.length > 0)
{
_loc4_ = _loc9_.shift();
_loc2_ = _loc4_.nodeName;
if(_loc2_ != undefined)
{
var _loc5_ = new Object();
_loc5_.attributes = _loc4_.attributes;
_loc5_.data = _loc4_.firstChild.nodeValue;
if(position != undefined)
{
_loc10_ = path;
}
if(path[_loc2_] != undefined)
{
if(path[_loc2_].__proto__ == Array.prototype)
{
path[_loc2_].push(_loc5_);
name = _loc4_.nodeName;
position = path[_loc2_].length - 1;
}
else
{
var _loc8_ = path[_loc2_];
path[_loc2_] = new Array();
path[_loc2_].push(_loc8_);
path[_loc2_].push(_loc5_);
name = _loc2_;
position = path[_loc2_].length - 1;
}
}
else
{
path[_loc2_] = _loc5_;
name = _loc2_;
position = undefined;
}
}
if(_loc4_.hasChildNodes())
{
this.translateXML(_loc4_,path,name,position);
}
}
}
return this.oResult;
};
_loc2_.oResult = new Object();
§§push(_loc2_.addProperty("xml",_loc2_.__get__xml,function()
{
}
));
§§push(ASSetPropFlags(it.sephiroth.XML2Object.prototype,null,1));
}
§§pop();
}
}
§§goto(addr324);
}
var §§pop() = new §function \§\\x1b�\\x02\§(\§�\\x07\§, \§\\x01\§, \§\\x02\\x01\§, \§\\x01\§, \§��\\b\\x01�\\x02\\x01\\x1d\§, _global, it, Object, sephiroth, XML2Object, prototype, __get__xml, oXML, parseXML)\r\n{\r\n}§();
§§push(§§constant(47));
}
addr324: